package Bean;

import java.util.ArrayList;

import DAO.DAOSala;
import Model.Sala;

public class BeanListaSalas {
	
	
	private ArrayList<Sala> salas;

	public BeanListaSalas() throws Exception {

        DAOSala dao = new DAOSala();
        try{
            this.salas = dao.listar(0);
        }catch(Exception e){
            this.salas = null;
            System.out.println(e);
        }
    }
	
	
	public ArrayList<Sala> getSalas() {
		return salas;
	}

	public void setSalas(ArrayList<Sala> Salas) {
		this.salas = Salas;
	}
	
	

}
